//
//  MBHudUtils.swift
//  ddx0513
//
//  Created by ejian  on 15/6/25.
//  Copyright (c) 2015年 jiang yongbin. All rights reserved.
//

import Foundation

class MBHudUtils {
    class func showText(text: String, view: UIView) {
        var hud = MBProgressHUD.showHUDAddedTo(view, animated: true)
        hud.mode = MBProgressHUDMode.Text
        hud.labelText = text
        hud.margin = 10.0
        hud.removeFromSuperViewOnHide = true
        hud.square = true
        
        hud.hide(true, afterDelay: 1)
    }

}